<?php
session_start(); 
include_once "config.php";
include_once "connect.php";

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', true);
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AP3-SP-les phoques du desert</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="verification.js"></script>	
</head>
<body onLoad="display_c()">
	<script src="jquery.js"></script>
	<div id="all">
		<div id="header">		
		<?php
		$array=array();
		include_once "sujet.php";

		
		echo "<h1>Supprimer un compte </h1>";
			?>
			
		</div>
		
		<div id="content">
		<?php
		
				$requete=mysql_query("delete from AP3_SP_user where id_user=".$_GET["id_user"]);
				if($requete==true)
				{
					echo "La suppression a été effectuée avec succès<br/>";
					echo "<a href='index.php'> Retour a l'index </a>";
				}
				
				
		?>
				</div>
		
		<div id="footer">
			<div id="ct">
			
			</div>
			
			<div id="droit">
			Made by Les Phoques Du Désert
			</div>
		</div>
	</div>
	

	

</body>
</html>